/*
 * Cam.cpp
 * Author: Johan Kristins
 *	
 */

#include "Cam.h"

Cam::Cam()
{
	m_pos.x = 0;
	m_pos.y = 0;
	m_pos.z = -10;

	m_at.x = 0;
	m_at.y = 0;
	m_at.z = 0;

	m_orientation.x = 0;
	m_orientation.y = 1;
	m_orientation.z = 0;
};

Cam::~Cam()
{

};

void Cam::MoveUp(int speed)
{
	m_pos.y += speed;
	m_at.y += speed;
};

void Cam::MoveDown(int speed)
{
	m_pos.y -= speed;
	m_at.y -= speed;
};

void Cam::MoveLeft(int speed)
{
	m_pos.x -= speed;
	m_at.x -= speed;
};

void Cam::MoveRight(int speed)
{
	m_pos.x += speed;
	m_at.x += speed;
};

void Cam::MoveForward(int speed)
{
	m_pos.z += speed;
	m_at.z += speed;
};

void Cam::MoveBackward(int speed)
{
	m_pos.z -= speed;
	m_at.z -= speed;
};